package com.freedom.admin.infrastructure.persistence.assembler;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freedom.admin.infrastructure.persistence.pojo.bo.UserBO;
import com.freedom.admin.infrastructure.persistence.pojo.po.SysUserPO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysUserAssembler {

    SysUserPO toPO(UserBO userBO);

    Page<UserBO> toBOPage(IPage<SysUserPO> sysUserPOPage);

    UserBO toBO(SysUserPO sysUserPO);
}
